Set Volume of TTS
Function:
magicbox.set_tts_volume(port, sound)Description: set the volume of text-to-speech modules
Required parameter:
- port: controller port (the value is 2)
- sound: volume. data type: int, range: 0~15
- Return:
- True: The command has been finished.
- False: The command has not been finished.
Example
magicbox.set_tts_volume(port=2, sound=5)Set the volume of text-to-speech module connected to Port 2 of controller to 5.